home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / apport / package-hooks / ubiquity.py < prev    next >
Encoding:
Python Source  |  2008-09-17  |  608 b   |  16 lines

  1. # apport hook for ubiquity; adds various log files
  2.  
  3. import os.path
  4.  
  5. def add_info(report):
  6.     if os.path.exists('/var/log/syslog'):
  7.         report['UbiquitySyslog'] = ('/var/log/syslog',)
  8.     if os.path.exists('/var/log/partman'):
  9.         report['UbiquityPartman'] = ('/var/log/partman',)
  10.     if os.path.exists('/var/log/installer/debug'):
  11.         report['UbiquityDebug'] = ('/var/log/installer/debug',)
  12.     if os.path.exists('/var/log/installer/dm'):
  13.         report['UbiquityDm'] = ('/var/log/installer/dm',)
  14.     if os.path.exists('/var/log/casper.log'):
  15.         report['Casper'] = ('/var/log/casper.log',)
  16.